package com.local.es.mapper;

import com.local.es.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {

    /**
     * 查询列表
     * @param isDeleted
     * @param start
     * @param limit
     * @return
     */
    public List<Goods> getList(Integer isDeleted, Integer start, Integer limit);


    /**
     * 根据goodsId查询
     * @param goodsId
     * @return
     */
    public Goods getById(Integer goodsId);

    /**
     * 新增
     * @param goods
     * @return
     */
    public Integer save(Goods goods);

    /**
     * 更新
     * @param goods
     * @return
     */
    public Integer update(Goods goods);

    /**
     * 逻辑删除
     * @param goods
     * @return
     */
    public Integer delete(Goods goods);
}
